﻿<Page
    x:Class="Spritehand.PhysicsHelper.Demos.UWP.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Spritehand.PhysicsHelper.Demos.UWP"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ph="using:Spritehand.FarseerHelper"
    mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" Background="CornflowerBlue">
        <Canvas x:Name="cnvGameOuter"  >
            <ph:PhysicsCanvas x:Name="cnvGame" Background="CornflowerBlue" DebugMode="False"  Width="1366" Height="768" MousePickEnabled="true">

                <local:ucBlock Canvas.Left="150" Canvas.Top="10" />

                <local:ucRagDoll Canvas.Left="200" Canvas.Top="0" />

                <local:ucSmiley Canvas.Left="250" Canvas.Top="0" />

                <ph:PhysicsSprite x:Name="ground" Background="DarkGreen"  Canvas.Left="0" Canvas.Top="648"  Width="1366" Height="120" IsStatic="True" />
                <ph:PhysicsSprite x:Name="wallLeft" Background="DarkGreen"  Canvas.Left="-40" Canvas.Top="0"  Width="42" Height="768" IsStatic="True" />
                <ph:PhysicsSprite x:Name="wallRight" Background="DarkGreen"  Canvas.Left="1364" Canvas.Top="0"  Width="42" Height="768" IsStatic="True" />

            </ph:PhysicsCanvas>

        </Canvas>

        <TextBlock x:Name="tbStatus" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,20,0,0" Foreground="White" FontSize="24" />

        <Grid VerticalAlignment="Bottom" >
            <StackPanel Orientation="Horizontal" Margin="20">
                <!--ApplicationBar buttons use a style defined by the app.-->
                <Button x:Name="btnAddBlock" Content="Block ++" Click="btnAddBlock_Click" Margin="10,0,10,0" Height="60" FontSize="28" />
                <Button x:Name="btnAddRagdoll" Content="Ragdoll ++" Click="btnAddRagdoll_Click" Margin="10,0,10,0" Height="60" FontSize="28" />
                <Button x:Name="btnAddTruck" Content="Truck ++" Click="btnAddTruck_Click" Margin="10,0,10,0" Height="60" FontSize="28" />
                <Button x:Name="btnAddSmiley" Content="Smiley ++" Click="btnAddSmiley_Click" Margin="10,0,10,0" Height="60" FontSize="28" />
                <Button x:Name="btnClear" Content="Clear All" Click="btnClear_Click" Margin="10,0,10,0" Height="60" FontSize="28" />
                <CheckBox x:Name="cbxDebug" Content="Show Debug" Click="cbxDebug_Click" Margin="10,0,10,0" Height="60" FontSize="28"/>
            </StackPanel>
        </Grid>
    </Grid>
</Page>
